package com.giveu.signature;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FilterType;

import com.giveu.common.admin.web.XssFilter;
import com.giveu.common.aspect.log.service.AopAspectServiceLog;
import com.giveu.common.exception.GlobalExceptionHandler;

@MapperScan(basePackages={"com.giveu.signature.module.*.mapper"})
@ComponentScan(basePackages={"com.giveu.signature",
							 "com.giveu.common"},
excludeFilters = @ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE, classes = {GlobalExceptionHandler.class,AopAspectServiceLog.class,XssFilter.class})) 
@EnableFeignClients(basePackages={"com.giveu.data.**.service",
								  "com.giveu.signature.service",
								  "com.giveu.common.feign"})
@EnableEurekaClient
@SpringBootApplication
public class SignatureAdminApplication {
    
    public static void main(String[] args) {
        SpringApplication.run(SignatureAdminApplication.class, args);
    }
    
}